	console.log("评价详情");
	var doc = document;
	var $ = mui;
	// 引入依赖
	var appraise_list = document.getElementById("appraise_list"); //添加列表的容器
	var img_shows = document.getElementById("img_shows"); //遮罩层
	var slider = document.getElementById("slider"); //图片原图集合
	$.init();
	$.plusReady(function() {
		plus.screen.lockOrientation("portrait-primary");
		var state = app.getState();
		var thisweb = plus.webview.currentWebview();
		thisweb.setStyle({
			'popGesture': 'none'
		});
		var self = plus.webview.currentWebview();
		var screanWidth = document.body.clientWidth;
		var li_height=screanWidth*0.32+"px";
		var evalSeq = self.evalSeq.split("|")[0];
		var username = self.evalSeq.split("|")[1];
		getappraise();
		function getappraise() {
			var appraiseInfo = {
				'evalSeq': evalSeq,
				"currentBusinessCode": "01010055",
				"operFlag": "1",
				waitTitle: '正在查询..'
			}
			if(localStorage.getItem("sessionId")) {
				var url = mbank.getApiURL() + "mercEvalDetail.do";//获取信息的路径
			} else {
				var url = mbank.getApiURL() + 'mercEvalDetailNoSession.do';
			}
			mbank.apiSend('post', url, appraiseInfo, appraiselist_show, null, true);
		}
		function appraiselist_show(data) {
			var html = "";
			var imgnum = data.iEvalPhotoList;
			//用户名称显示
			console.log(username);
//			if(data.iEvalPhotoList.length !== 0) {
//				imgInfos = data.iEvalPhotoList[0].photoPath;
//				imgnum = spiltimg(imgInfos);
//			} else {
//				imgnum = '';
//			}
			html += "<div class='leftPic2' ><img src='../../images/touX_icon.png'></div><div class='m_left3 m_top5 m_right8'>" +
				"<p><span class='fz-14 cor_333'>" + username + "</span><span class='fr cor_666 fz_12'>" + data.evalTime.split(" ")[0] + "</span></p><p>";
			for(var k = 0; k < 5; k++) {
				if(k < Math.round(data.evalScore)) {
					html += "<img src='../../images/sc2_icon2.png' style='margin-right:3px;' width='auto' height='15px'>";
				} else {
					html += "<img src='../../images/sc2_icon3.png' style='margin-right:3px;' width='auto' height='15px'>";
				}
			}
			html += "</p><p class='fz_14 cor_333'>" + data.evalDesc + "</p><ul class='three_col m_top5'>" 
			if(imgnum == "" || imgnum == "null") {
				html += "";
			} else {
				var sliderhtml = "<div class='mui-slider-group'>";
				for(var k = 0; k < imgnum.length; k++) {
					if(k == 2) {
						html += "<li style='"+li_height+"' onclick='img_show(" + k + ")' id=" + k + " class='p_right0'><img onload='img_load(this)' src='" + mbank.getimgURL() + imgnum[k].photoPath + "' /></li>";
					} else {
						html += "<li style='"+li_height+"' onclick='img_show(" + k + ")' id=" + k + "><img onload='img_load(this)' src='" + mbank.getimgURL() + imgnum[k].photoPath + "' /></li>";
					}
					sliderhtml += "<div class='mui-slider-item'><a href='#'><img onload='img_load2(this)' style='vertical-align: middle;' src='" + mbank.getimgURL() + imgnum[k].photoPath + "'></a></div>";
				}
				sliderhtml += "</div>";
			}
			html += "</ul></div>";
			appraise_list.innerHTML = html;
			if(imgnum !== "" || imgnum !== "null") {
				slider.innerHTML = sliderhtml;
			}
		}
		img_load = function(nu) {
				nu.parentNode.style.height = nu.parentNode.offsetWidth - 10 + "px";
				if(nu.width > nu.height) {
					nu.style.height = "100%";
					nu.style.marginLeft = "-15px";
				} else if(nu.width < nu.height) {
					nu.style.width = "100%";
					nu.style.marginTop = "-15px";
				} else {
					nu.style.height = "100%";
					nu.style.width = "100%";
				}
			}
			//查看大图的图片加载方法
		img_load2 = function(nn) {
			nn.parentNode.style.width = "100%";
			nn.parentNode.style.height = document.body.clientHeight + "px";
			nn.parentNode.style.lineHeight = document.body.clientHeight + "px";
		}
		mui("#img_list").on("tap", "li", function() {
				img_show(this.id);
			})
			//点击查看大图的方法
		img_show = function(num) {
			img_shows.style.display = "block";
			slider.style.display = "block";
			var gallery = mui('.mui-slider').slider();
			gallery.gotoItem(num);
		}
		img_shows.addEventListener("tap", function() {
			img_shows.style.display = "none";
			slider.style.display = "none";
		})
		slider.addEventListener("tap", function() {
				img_shows.style.display = "none";
				slider.style.display = "none";
			})
			//分割图片字符串
		function spiltimg(imgInfo) {
			var imglist = [];
			if(imgInfo == "" || imgInfo == null || imgInfo == 0) {
				return "";
			} else {
				var no = imgInfo.indexOf("|");
				if(no != "-1") {
					var img = imgInfo.split("|");
					for(var i = 0; i < img.length; i++) {
						imglist.push(img[i]);
					}
					return imglist;
				} else {
					imglist.push(imgInfo);
					return imglist;
				}
			}
		}
		//图片加载方法
		img_load = function(nu) {
			nu.parentNode.style.height = nu.parentNode.offsetWidth - 10 + "px";
			if(nu.width > nu.height) {
				nu.style.height = "100%";
				nu.style.left = "-15px";
			} else if(nu.width < nu.height) {
				nu.style.width = "100%";
				nu.style.marginTop = "-15px";
			} else {
				nu.style.height = "100%";
				nu.style.width = "100%";
			}
		}
	});
